package com.sqm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.sqm.entity.User;
import org.apache.ibatis.annotations.Select;


public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    @Select("select * from user where username = #{username}")
    User selectByName(String username);
}
